#import "GritXenophobeCell.h"


@implementation GritXenophobeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self nirvanaTranquilitySubViews];
	}
	return self;
}

- (void)setYieldThriveUnveil:(GritXenophobeModel *)yieldThriveUnveil {
	_yieldThriveUnveil = yieldThriveUnveil;

	//: 配置cell的UI

}
- (UILabel *)kaleidoscopeLabel {
	if (!_kaleidoscopeLabel) {
	
        _kaleidoscopeLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _kaleidoscopeLabel.frame = CGRectMake(38, 5, 125, 165);
        _kaleidoscopeLabel.text = @"label_3";
        _kaleidoscopeLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightBold];
        _kaleidoscopeLabel.textColor = [UIColor colorWithRed:138/255.0 green:62/255.0 blue:54/255.0 alpha:0.7];
        _kaleidoscopeLabel.textAlignment = NSTextAlignmentRight;
        _kaleidoscopeLabel.numberOfLines = 0;
	}
	return _kaleidoscopeLabel;
}

//: _underwaterXenophileButton 的点击事件
- (void)action_4 {}

- (UIButton *)underwaterXenophileButton {
	if (!_underwaterXenophileButton) {
	
        _underwaterXenophileButton = [[UIButton alloc] initWithFrame:CGRectZero];
        _underwaterXenophileButton.frame = CGRectMake(41, 6, 99, 143);
        UIImage *unveil = [UIImage imageNamed:@"images/icon_4.png"];
        if (unveil) {
	        [_underwaterXenophileButton setImage:unveil forState:UIControlStateNormal];
        }
        [_underwaterXenophileButton setTitle:@"button_4" forState:UIControlStateNormal];
        [_underwaterXenophileButton setTitle:@"button_selected_4" forState:UIControlStateSelected];
        [_underwaterXenophileButton setTitleColor:[UIColor colorWithRed:49/255.0 green:155/255.0 blue:86/255.0 alpha:0.9] forState:UIControlStateNormal];
        [_underwaterXenophileButton setTitleColor:[UIColor colorWithRed:165/255.0 green:68/255.0 blue:22/255.0 alpha:0.8] forState:UIControlStateSelected];
        [_underwaterXenophileButton addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
	}
	return _underwaterXenophileButton;
}

- (UITextField *)glowNostalgicTextField {
	if (!_glowNostalgicTextField) {
	
        _glowNostalgicTextField = [UITextField new];
	}
	return _glowNostalgicTextField;
}

- (void)nirvanaTranquilitySubViews {

    //: 描述_0
    self.glimmerView = [[UIView alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.glimmerView];
	[self.glimmerView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(157);
		make.height.mas_equalTo(104);
		make.bottom.equalTo(@(17));
	}];


    //: 描述_1
    UITextField *glimpse = [[UITextField alloc] initWithFrame:CGRectZero];
    self.umbrellaTextField = glimpse;
    [self.contentView addSubview:glimpse];
	[self.umbrellaTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(85);
		make.height.mas_equalTo(62);
		make.top.equalTo(@(21));
	}];


    //: 描述_2
    UITextView *universeKeepsakeDreamer = [[UITextView alloc] initWithFrame:CGRectZero];
    universeKeepsakeDreamer.frame = CGRectMake(42, 12, 196, 174);
    self.zipperSwayTextView = universeKeepsakeDreamer;
    [self.contentView addSubview:universeKeepsakeDreamer];

	//: 描述_3
	[self.contentView addSubview:self.kaleidoscopeLabel];

	//: 描述_4
	[self.contentView addSubview:self.underwaterXenophileButton];

	//: 描述_5
	[self.contentView addSubview:self.glowNostalgicTextField];
	[self.glowNostalgicTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(75);
		make.height.mas_equalTo(117);
		make.top.equalTo(@(11));
		make.bottom.equalTo(@(22));
	}];


    //: 描述_6
    self.hazeTextView = [[UITextView alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.hazeTextView];
	[self.hazeTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(160);
		make.height.mas_equalTo(164);
		make.top.equalTo(@(30));
		make.bottom.equalTo(@(12));
	}];
}


@end